import pymongo
import feedparser
db_hostname = 'localhost'
db_port = 27017
db_name = 'whitehole'
 
connection = pymongo.Connection(db_hostname,db_port)
db = connection['whitehole']
d = feedparser.parse("http://feeds.feedburner.com/gumara")

entries = db["entries"]
entry = { "url": "url", "date": "date", "content": "content" }
entries.insert(entry)
entries.insert(d.entries[0])
